<ui:composition template="/templates/master.xhtml"
    xmlns="http://www.w3.org/1999/xhtml"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:p="http://primefaces.org/ui">

    <ui:define name="corpo-da-pagina">
      <h:inputHidden value="#{msgAcao.addError}" />
        <p:messages id="messages" showDetail="true" autoUpdate="true"  />

    </ui:define>
</ui:composition>